PreviousNextTracker indexSee it online !

(226/308) 1703 - Auto-Import Files to Project should consider ignore dirs

If I have the option "auto-add files to project", it should ignore files that are in the "directories to ignore" specification of the projectviewer reimport options.

Currently, it auto-adds files like .git/COMMIT_EDITMSG which it should not ever add to the project.

Submitted ezust - 2013-03-18 17:11:32 Assigned daleanson
Priority 5 Labels Project Viewer
Status open Group None
Resolution None

Comments

2013-03-18 17:12:33
ezust

- **assigned_to**: nobody --> daleanson

2013-03-18 17:15:24
ezust

- **summary**: Auto-Add Files to Project should consider ignore dirs --> Auto-Import Files to Project should consider ignore dirs

2013-03-18 17:15:24
ezust

Let me clarify. The option is "importing new files" and the radio button chosen is "auto import"

2013-03-18 17:32:15
ezust

I tried adding \!COMMIT_EDITMSG to the "files to import", and it is also not considered during auto-import.

2013-03-31 16:44:43
ezust

looked at the code involved. ProjectViewer line 1251. Now that is what I call ugly-ass code\!
And probably must be cleaned up or refactored somehow in order to implement this.

2013-04-01 16:57:59
daleanson

Yes, that does look like a good candidate for refactoring.

2013-04-01 20:58:43
daleanson

Ugh.